#include "Engine.h"
#include "xp.h"

int key_handler(int keycode, bool pressed) {
	printf("key: %d\n", keycode);
	if (keycode == 27) {
		return XP_SHUTDOWN;
	}
	return XP_NO_OP;
}

int main(int argc, char** argv) {

	char title[]="XP";
	if (!xp_open_windowed(title, 800, 600)) {
		return -1;
	}

	while (XP_SHUTDOWN != xp_handle_events()) {
	}

	return xp_close();
}
